package org.lee.visitor.app.visitor;

import org.lee.visitor.app.user.impl.Student;
import org.lee.visitor.app.user.impl.Teacher;

/**
 * Visitor
 *
 * @author dralee
 * @date 2021-11-24 14:14:45
 **/
public interface Visitor {

    /**
     * 访问教师信息
     *
     * @param teacher
     */
    void visit(Teacher teacher);

    /**
     * 访问学生信息
     *
     * @param student
     */
    void visit(Student student);
}
